package com.ipzoe.common.captcha.config;

import lombok.Data;

@Data
public class CaptchaCodeProperties {

    /**
     * 验证码的长度,默认为4
     */
    private Integer length = 4;
    /**
     * 验证码的失效时间，单位秒，默认为300s
     */
    private Integer expireIn = 300;
    /**
     * 验证码是否包含字母,默认不包含
     */
    private Boolean containLetter = false;
    /**
     * 验证码是否包含数字,默认包含
     */
    private Boolean containNumber = true;

    /**
     * 验证码的key前缀，目前redis存储用到
     */
    private String codeKeyPrefix = "captcha_code_";
}
